import requests
import random
while True:
	f=requests.get("https://img.xjh.me/random_img.php?type=bg&return=302")
	with open("bg/"+str(random.randint(1000000,9999999))+".jpg","wb") as code:
		code.write(f.content)
	print("get OK")